package com.design.softwaredesign.mapper;

import com.design.softwaredesign.entity.Good;
import com.design.softwaredesign.entity.User;
import com.design.softwaredesign.front.UserInfo;
import com.design.softwaredesign.vo.DataVo;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {

    public int checkPhone(String phone);

    public User selectUser(String password);

    public void addUser(User user);

    public int checkCodePhone(String phone);

    public void updateCode(String phone, String code);

    public void addCodePhone(String phone, String code);

    public String getPhoneCode(String phone);

    public void updateUserInfo(UserInfo userInfo);

    public UserInfo selectUserByPhone(String phone);

    public UserInfo selectUserByUserId(String phone);

    public List<Good> getMyGoods(String userId, String query);

    public List<Good> getMyTransactions(String userId, String query);
}
